package com.smartstate.dataManagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smartstate.dataManagement.entity.CarbonContribution;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ContributionMapper extends BaseMapper<CarbonContribution> {

    @Select("SELECT EXISTS (SELECT 1 FROM carbon_contribution WHERE dateContribution = #{dateContribution})")
    Integer getData(String dateContribution);

}
